#include <stdio.h>
#include <stdint.h>

/* ��������� ������*/

struct sensor
{
    uint8_t minute;
    uint8_t hour;
    uint8_t day;
    uint8_t month;
    uint16_t year;
    int8_t t;
};

/*������ � �������*/

float MeanMonth(struct sensor,int);
int MinMonth(struct sensor,int);
int MaxMonth(struct sensor,int);
float MeanYear(struct sensor,int);
int MinYear(struct sensor,int);
int MaxYear(struct sensor,int);

/*������� �����-������*/


int ReadFile(struct sensor);
void print(struct sensor,int);
void AddRecord(struct sensor *info, int, uint16_t, uint8_t, uint8_t, uint8_t, uint8_t, int8_t);
void DelRecord(struct sensor,int,int);

// /*������� ����������*/
void SortByT(struct sensor,int);
void SortByDate(struct sensor, int);